package com.xlblog.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xlblog.blog.entity.User;
import com.xlblog.blog.mapper.UserMapper;
import com.xlblog.blog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

//    @Autowired
//    UserMapper userMapper;

    @Override
    public boolean login(String username, String password) {
        boolean isLogin;
        if(username.equals("admin") && password.equals("15975424402")){
            isLogin = true;
            return isLogin;
        }else{
            isLogin = false;
            return isLogin;
        }
    }
}
